package Model.Entity;



import SqlGenerator.Column;
import SqlGenerator.Entity;
import SqlGenerator.ID;

import java.util.Date;
@Entity("orders")
public class Order   {
    @ID
    @Column(length = 20)
    private Long id;
    @Column(length = 20)
    private Long commodityid;//FK
    private Long userid;//FK
    private String no;
    private Date time;
    private Boolean insurance;
    private String delivery;
    private String state;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {

        return id;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getNo() {

        return no;
    }

    public String getState() {
        return state;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public void setInsurance(Boolean insurance) {
        this.insurance = insurance;
    }

    public void setDelivery(String delivery) {
        this.delivery = delivery;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public void setCommodityid(Long commodityid) {
        this.commodityid = commodityid;
    }

    public Long getCommodityid() {

        return commodityid;
    }

    public Date getTime() {
        return time;
    }

    public Boolean getInsurance() {
        return insurance;
    }

    public String getDelivery() {
        return delivery;
    }

    public Long getUserid() {
        return userid;
    }
}
